package com.yihubang.taobaokotlin.utils

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

/*
 * class title: 
 * Author by RenChunLin, Email 18957806320@163.com, Date on 2021/5/10.
 * PS: Not easy to write code, please indicate.
 */
object RetrofitManage {
    fun getRetrofit(): Retrofit {
        //创建retrofit
        return Retrofit.Builder()
            .baseUrl(Constants.BASE_URL)
            .addConverterFactory(GsonConverterFactory.create())
            .build()
    }
}